package com.ad.pet.app.account.adapter;

import android.support.annotation.Nullable;
import android.widget.TextView;

import com.ad.pet.R;
import com.ad.pet.models.remote.account.Yue;
import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;

import java.util.List;

/**
 * Created by Administrator on 2020/2/20.
 */

public class PointListAdapter extends BaseQuickAdapter<Yue,BaseViewHolder> {
    String dagwei="";

    public PointListAdapter( @Nullable List<Yue> data) {
        super(R.layout.item_sign_point, data);
    }
    public PointListAdapter( @Nullable List<Yue> data,String dangwei) {
        super(R.layout.item_sign_point, data);
        this.dagwei = dangwei;
    }

    @Override
    protected void convert(BaseViewHolder helper, Yue item) {
        TextView tvName = helper.getView(R.id.tv_text);
        TextView tvTime = helper.getView(R.id.tv_time);
        TextView tvtv_point_number = helper.getView(R.id.tv_point_number);
        tvName.setText(item.getFrom_type());
        tvTime.setText(item.getCreate_time());
        tvtv_point_number.setText(item.getNumber()+dagwei);

    }
}
